package com.fhxy.controller;

import com.fhxy.model.domain.Content;
import com.fhxy.service.ContentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * ClassName: ContentController
 * date: 2024/6/22 10:17
 *
 * @author 卢洋
 */
@RestController
@RequestMapping("/content")
public class ContentController {
    @Resource
    private ContentService contentService;

    @GetMapping("/search")
    public List<Content> searchAll(){

        List<Content> searchList = contentService.search();
        return searchList;
    }
}
